<?php

       $idEmpresa = $_POST["idEmpresa"];
        include_once('../PHPJasperXML/class/tcpdf/tcpdf.php');
        include_once("../PHPJasperXML/class/PHPJasperXML.inc.php");
        include_once ('../PHPJasperXML/setting.php');
        $xml =  simplexml_load_file("../xml/vacina.jrxml");
        $PHPJasperXML = new PHPJasperXML();
        //$PHPJasperXML->debugsql=true;
        $PHPJasperXML->arrayParameter=array("idEmp"=>$idEmpresa);
        $PHPJasperXML->xml_dismantle($xml);

        $PHPJasperXML->transferDBtoArray($server,$user,$pass,$db);
        $PHPJasperXML->outpage("I");  